<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
	<form method="post" id="storageOrderBatchExcelExportFormId" action="${rootUrl}/order/storage-order/0/batchExcelExport" class="pageForm required-validate" onsubmit="return validateCallback(this, newDialogAjaxDone);">
		<div class="searchBar">
		<ul class="searchContent" style="height: 530px">
			<li>
				<label>快递公司：</label>
				<input type="hidden" id="batchExcelExpressId" name="express.id"/>
				<input type="text" style="float:left" name="express.name" readonly="readonly"/>
				<a class="btnLook" href="${rootUrl}/seller/express/0/dialog?sellerId=${sellerId}" width="800" height="600" lookupGroup="express">快递公司</a>
			</li>
			<li style="width: 500px">
				<label>支付时间：</label>
				<input name="viewRequest.params['payTimeBegin']" id="batchExcelPayTimeBeginid" type="text" class="date" size="20" value="${viewRequest.params['payTimeBegin'] }" placeholder="开始时间"/>
				<input name="viewRequest.params['payTimeEnd']" id="batchExcelPayTimeEndid" type="text" class="date" size="20" value="${viewRequest.params['payTimeEnd'] }" placeholder="结束时间"/>
			</li>
			</ul>
    	 </div>
    	<div class="formBar">
			<ul>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" onclick="exportOrder()">导出</button></div></div>
				</li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">关闭</button></div></div>
				</li>
			</ul>
		</div>
    </form>
</div>
<script>
	function exportOrder() {
		if($("#batchExcelExpressId").val() == ""){
			alertMsg.warn('请选择快递公司!');
			return false;
		}
		 window.location.href="${rootUrl}/order/storage-order/0/batchExcelExport?viewRequest.params['expressId']="+$("#batchExcelExpressId").val()
				+"&viewRequest.params['payTimeBegin']="+$("#batchExcelPayTimeBeginid").val()
				+"&viewRequest.params['payTimeEnd']="+$("#batchExcelPayTimeEndid").val()
				+"&viewRequest.params['sellerId']="+${sellerId}; 
	}
</script>